/*
 * Copyright 2002-2010 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.beans.factory.support;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;

/**.
 *
 * 后置处理器 – 容器级别
 *
 *
 * @author Juergen Hoeller
 * @since 3.0.1

 *
 *这里的BeanDefinitionRegistry其实就是一般常说的Spring bean 容器
 * 通常是一个DefaultListableBeanFactory,它实现了BeanDefinitionRegistry接口用于作为bean定义注册表,
 * 同时也实现了接口ConfigurableListableBeanFactory用于作为一个bean容器。
 *
 * BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProcessor,
 * 可以在一般BeanFactoryPostProcessor调用之前对BeanDefinition做一些操作
 * 尤其是它可以注册用来生成BeanFactoryPostProcessor的bean定义。
 *
 * BeanDefinitionRegistryPostProcessor的一个典型例子可以参考:ConfigurationClassPostProcessor
 *
 */
public interface BeanDefinitionRegistryPostProcessor extends BeanFactoryPostProcessor {

	/**
	 * 这个方法提供给容器加载许多bean定义的机会
	 */
	void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException;

}
